//
//  CenterView.m
//  iNews
//
//  Created by lanou3g on 14-12-8.
//  Copyright (c) 2014年 张在青. All rights reserved.
//

#import "CenterView.h"

@implementation CenterView

- (void)dealloc
{
    [_tableView release];
    
    [super dealloc];
}

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self addAllViews];
        
    }
    return self;
}

- (void)addAllViews
{
    self.tableView = [[[UITableView alloc] initWithFrame:self.bounds style:UITableViewStyleGrouped] autorelease];
    
    self.tableView.backgroundColor = [UIColor yellowColor];
    
    [self addSubview:self.tableView];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
